// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import FastClick from 'fastclick'
// import vueTouch from 'kim-vue-touch'
// import 'video.js/dist/video-js.css'
// import '@/assets/css/font/iconfont.css'
import 'scss-flex/src/scss-flex.scss'
// import Vant from 'vant' // vant包引入
// import 'vant/lib/index.css' // vant 样式包引入
// Vue.use(vueTouch)
FastClick.attach(document.body)
FastClick.prototype.focus = function(targetElement) {
  let length
  if (targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
    length = targetElement.value.length
    targetElement.focus()
    targetElement.setSelectionRange(length, length)
  } else {
    targetElement.focus()
  }
}
// Vue.use(Vant)
// 设置 js中可以访问 $cdn
// import { $cdn } from '@/config'
// Vue.prototype.$cdn = $cdn

// 全局引入按需引入UI库 vant
import '@/plugins/vant'
// 引入全局样式
import '@/assets/css/index.scss'
// 移动端适配
import 'lib-flexible/flexible.js'
// import echarts from 'echarts'
// Vue.prototype.$echarts = echarts
// filters
import './filters'
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
